package dataInit

import "github.com/gomodule/redigo/redis"

func NewRedisInit() *redis.Conn{
	pool := &redis.Pool{
		MaxIdle : 10,
		MaxActive : 0,
		IdleTimeout : 100,
		Dial : func()(redis.Conn, error){
			return redis.Dial("tcp", "127.0.0.1:6379")
		},
	}
	poolConn := pool.Get()

	return &poolConn
}
